package com.ruoyi.ai_config.domain;

import java.math.BigDecimal;
import java.time.LocalDate;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.ruoyi.ai_config.domain.AiConfigParams;
import com.ruoyi.ai_config.domain.AiPromptTemplates;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * AI任务配置主对象 ai_task_config
 *
 * @author lzk
 * @date 2025-06-25
 */
@Schema(description = "AI任务配置主对象")
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class AiTaskConfig extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @Schema(title = "主键")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /** 配置名称 */
    @Schema(title = "配置名称")
    @Excel(name = "配置名称")
    private String configName;

    /** 任务类型：article_generation-文章生成，question_generation-题目生成 */
    @Schema(title = "任务类型：article_generation-文章生成，question_generation-题目生成")
    @Excel(name = "任务类型：article_generation-文章生成，question_generation-题目生成")
    private String taskType;

    /** 配置描述 */
    @Schema(title = "配置描述")
    @Excel(name = "配置描述")
    private String description;

    /** 是否启用：0-禁用，1-启用 */
    @Schema(title = "是否启用：0-禁用，1-启用")
    @Excel(name = "是否启用：0-禁用，1-启用")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long isActive;

    /** 创建者 */
    @Schema(title = "创建者")
    @Excel(name = "创建者")
    private String createdBy;

    /** 创建时间 */
    @Schema(title = "创建时间")
    @Excel(name = "创建时间")
    private LocalDate createdTime;

    /** 更新者 */
    @Schema(title = "更新者")
    @Excel(name = "更新者")
    private String updatedBy;

    /** 更新时间 */
    @Schema(title = "更新时间")
    @Excel(name = "更新时间")
    private LocalDate updatedTime;

    /** 删除标志 */
    @Schema(title = "删除标志")
    private String delFlag;
    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }


    public void setConfigName(String configName)
    {
        this.configName = configName;
    }

    public String getConfigName()
    {
        return configName;
    }


    public void setTaskType(String taskType)
    {
        this.taskType = taskType;
    }

    public String getTaskType()
    {
        return taskType;
    }


    public void setDescription(String description)
    {
        this.description = description;
    }

    public String getDescription()
    {
        return description;
    }


    public void setIsActive(Long isActive)
    {
        this.isActive = isActive;
    }

    public Long getIsActive()
    {
        return isActive;
    }


    public void setCreatedBy(String createdBy)
    {
        this.createdBy = createdBy;
    }

    public String getCreatedBy()
    {
        return createdBy;
    }


    public void setCreatedTime(LocalDate createdTime)
    {
        this.createdTime = createdTime;
    }

    public LocalDate getCreatedTime()
    {
        return createdTime;
    }


    public void setUpdatedBy(String updatedBy)
    {
        this.updatedBy = updatedBy;
    }

    public String getUpdatedBy()
    {
        return updatedBy;
    }


    public void setUpdatedTime(LocalDate updatedTime)
    {
        this.updatedTime = updatedTime;
    }

    public LocalDate getUpdatedTime()
    {
        return updatedTime;
    }


    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("configName", getConfigName())
            .append("taskType", getTaskType())
            .append("description", getDescription())
            .append("isActive", getIsActive())
            .append("createdBy", getCreatedBy())
            .append("createdTime", getCreatedTime())
            .append("updatedBy", getUpdatedBy())
            .append("updatedTime", getUpdatedTime())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
